export interface ProductCategory {
  category_id: number;
  category_name: string;
  parent_id: number;
  level: number;
  created_at: Date;
  updated_at: Date;
}

// goodsType.ts
// goodsType.ts
export interface Product {
  product_id: number;
  name: string;
  description: string;
  price: number;
  category_id: number;
  brand: string;
  imageUrl: string;
  video_url: string;
  detail_info: string;
  created_at: Date;
  updated_at: Date;
  apply_age: string;
  brand_id: number;
}
export interface ProductPageResponse {
  records: Product[]; // 商品列表
  total: number; // 总记录数
}
export interface Brand {
  brandId: number;
  brandName: string;
  brandDescription: string;
  brandLogoUrl: string;
  averageRating: number;
  positiveReviewCount: number;
  salesVolume: number;
  createdAt: Date;
}

export interface ProductReview {
  reviewId: number;
  productId: number;
  userId: number;
  rating: number;
  content: string;
  imageUrls: string;
  createdAt: Date;
}
// 商品属性
export interface AttributeProduct {
  attributeId?: number;
  productId?: number;
  attributeName?: string;
  attributeImg?: string;
  price?: number;
  isDel?: number;
  quantity?:number
}
export interface ProductResource{
  id?:number;
  productId?:number;
  url?:string;
  type?:number;
  name?:string;
}
